const mongoose = require('mongoose');

const seatstingModel = new mongoose.Schema({
    seatId: { type: "ObjectId", ref: "seats" },//座位Id
    schedulesId: { type: "ObjectId", ref: "schedules" },//排片Id
    // 当前排片的座位状态，1 为已售出， 0 为未售出
    status: {
        type: Number,
        default: 0,
    }
});
mongoose.model("seatings", seatstingModel, "seatings");